package com.huimingpay.merchant.convert;

import com.huimingpay.merchant.dto.StaffDTO;
import com.huimingpay.merchant.entity.Staff;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * ClassName:StaffConvert
 * Package:com.huimingpay.merchant.convert
 * Time: 2024/7/25
 */
@Mapper
public interface StaffConvert {
    StaffConvert INSTANCE = Mappers.getMapper(StaffConvert.class);

    StaffDTO EntityToDTO(Staff staff);

    Staff DTOToEntity(StaffDTO staffDTO);

    List<Staff> DTOListToEntityList(List<StaffDTO> staffDTOS);

    List<StaffDTO> EntityListToDTOList(List<Staff> staffs);
}
